<?php if (!isset($v_sval)) exit; ?>
<?php
	$v_news_id = (isset($_REQUEST["hdn_news_id"])) ? $_REQUEST["hdn_news_id"] : 0;
		$v_news_category = (isset($_REQUEST["txt_news_category"])) ? $_REQUEST["txt_news_category"] : 0;
		$v_news_title = (isset($_REQUEST["txt_news_title"])) ? $_REQUEST["txt_news_title"] : 0;
		$v_news_description = (isset($_REQUEST["txt_news_description"])) ? $_REQUEST["txt_news_description"] : 0;
		$v_news_content = (isset($_REQUEST["txt_news_content"])) ? $_REQUEST["txt_news_content"] : 0;
		$v_news_time = (isset($_REQUEST["txt_news_time"])) ? $_REQUEST["txt_news_time"] : 0;
		$v_news_status = (isset($_REQUEST["txt_news_status"])) ? $_REQUEST["txt_news_status"] : 0;
		$v_news_order = (isset($_REQUEST["txt_news_order"])) ? $_REQUEST["txt_news_order"] : 0;
		$v_news_hitcount = (isset($_REQUEST["txt_news_hitcount"])) ? $_REQUEST["txt_news_hitcount"] : 0;
		$v_news_src = (isset($_REQUEST["txt_news_src"])) ? $_REQUEST["txt_news_src"] : 0;
		$v_news_key = (isset($_REQUEST["txt_news_key"])) ? $_REQUEST["txt_news_key"] : 0;
		$v_account_id = (isset($_REQUEST["txt_account_id"])) ? $_REQUEST["txt_account_id"] : 0;

if (!$v_news_id){
	$v_news_id = insertNews(
		$v_news_category
			,$v_news_title
			,$v_news_description
			,$v_news_content
			,$v_news_time
			,$v_news_status
			,$v_news_order
			,$v_news_hitcount
			,$v_news_src
			,$v_news_key
			,$v_account_id
		
		 );
}else{
	updateNews(
		$v_news_id
			,$v_news_category
			,$v_news_title
			,$v_news_description
			,$v_news_content
			,$v_news_time
			,$v_news_status
			,$v_news_order
			,$v_news_hitcount
			,$v_news_src
			,$v_news_key
			,$v_account_id
		
	 );	
}
redir("?a=ACC&acc=NEWS&news=NEWS&news=A");
?>	
